package com.itheima.mapper;

import com.itheima.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper {

    void saveBatch(@Param("orderDetailList") List<OrderDetail> orderDetailList);
    @Select("select * from order_detail where order_id=#{id}")
    List<OrderDetail> findbyId(Long id);
}
